package com.hbsd.paopaobackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hbsd.paopaobackend.model.domain.Comment;
import com.hbsd.paopaobackend.model.domain.User;
import com.hbsd.paopaobackend.model.request.Comment.AddCommentRequest;
import com.hbsd.paopaobackend.model.request.Comment.CommentPageRequest;
import com.hbsd.paopaobackend.model.vo.Comment.CommentPageVO;

/**
* @author zzh
* @description 针对表【comment(评论表)】的数据库操作Service

*/
public interface CommentService extends IService<Comment> {
    /**
     * 添加博客评论
     * @param addCommentRequest
     * @param loginUser
     * @return
     */

    Boolean addComment(AddCommentRequest addCommentRequest, User loginUser);

    /**
     * 分页查询评论列表
     * @param commentPageRequest
     * @param loginUser
     * @return
     */
    Page<CommentPageVO> listCommentPage(CommentPageRequest commentPageRequest, User loginUser);
}
